package org.elec.mac.service;


import org.elec.mac.entity.SBasicsFormula;
import org.elec.mac.entity.SCategory;
import org.elec.mac.mapper.SBasicsFormulaMapper;
import org.elec.mac.mapper.SCategoryMapper;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Description:实现类
 * @author 
 * @version 1.0
 * @created 
 */
@Service
public class SBasicsFormulaService extends BaseService<SBasicsFormula,SBasicsFormulaMapper> implements InitializingBean {

	@Autowired
	private SBasicsFormulaMapper sBasicsFormulaMapper;
	
	public void afterPropertiesSet() throws Exception {
		this.setBaseMapper(sBasicsFormulaMapper);
	}

	public List<Map<String, Object>> getBasicList(Map<String, Object> param) {
		return this.sBasicsFormulaMapper.getBasicList(param);
	}

	public List<Map<String, Object>> getBasicMate(Long bid) {
		return this.sBasicsFormulaMapper.getBasicMate(bid);
	}

	public Integer getMaterialAmount(Long bid) {
		return this.sBasicsFormulaMapper.getMaterialAmount(bid);
	}

}
